

//
//  ChatlistCell.m
//  DogeLegs
//
//  Created by 宋华 on 2017/8/23.
//  Copyright © 2017年 宋华. All rights reserved.
//

#import "ChatlistCell.h"

@interface ChatlistCell () {

}

@property (weak, nonatomic) IBOutlet UIImageView *chatLogoImageview;

@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;

@property (weak, nonatomic) IBOutlet UILabel *chatContentLabel;

@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@end

@implementation ChatlistCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)cellWillDisplay:(RecentChat *)ChatMessage {
    [self.chatLogoImageview sd_setImageWithURL:[NSURL URLWithString:ChatMessage.friendLogo] placeholderImage:[UIImage imageNamed:@"back"]];
    [self.userNameLabel setText:ChatMessage.friendName];
    [self.chatContentLabel setText:ChatMessage.newerMsg];
    [self.dateLabel setText:ChatMessage.updateTime];
}

@end
